package cn.edu.scau.cmi.ema.service;

import cn.edu.scau.cmi.ema.base.CmiPagination;
import cn.edu.scau.cmi.ema.domain.Brand;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface BrandService {

	public Brand saveBrand(Brand brand);

	public Set<Brand> loadBrands();

	public Set<Brand> loadReferenceBrands(Set<Brand> brands);

	public Set<Brand> loadBrandsByIdSet(Set<Integer> brandsId);

	public Map<String, ?> loadBrandObjectReferencedSet(Brand brand);

	public Map<String, ?> loadBrandClassReferencedSet(Brand brand);

	public void deleteBrand(Brand brand);

	public void deleteBrands(Set<Integer> deleteBrandsId);

	public List<Brand> findAllBrands(Integer startResult, Integer maxRows);

	public Brand findBrandByPrimaryKey(Integer id);

	public Integer countBrands();

	public Integer countBrands(CmiPagination page);

	public Integer countBrandsByName(String queryName);

	public Integer countBrandsByDetachedCriteria(CmiPagination page);

}
